package com.dats.hot;

/**
 * @author sig
 * @since 2016/9/25
 */
public class HotSwapClassLoader extends ClassLoader {

    public HotSwapClassLoader() {
        super(Thread.currentThread().getContextClassLoader());
    }

    public Class<?> defineClass(byte[] bytes) {
        return defineClass(null, bytes, 0, bytes.length);
    }
}
